import {request} from '@/sheep/request';

export default {
	// 观影人列表
	id_list: () =>
		request({
			url: '/shop/api/vocal/view',
			method: 'GET',
		}),
	// 添加观影人
	id_add: (data) =>
		request({
			url: '/shop/api/vocal/view',
			method: 'POST',
			data
		}),
	// 删除观影人
	id_delete: (ids) =>
		request({
			url: `/shop/api/vocal/view/${ids}`,
			method: 'DELETE',
		}),
	// 观影人详情
	id_details: (id) =>
		request({
			url: `/shop/api/vocal/view/${id}`,
			method: 'GET',
		}),
	// 编辑观影人
	id_edit: (id, data) =>
		request({
			url: `/shop/api/vocal/view/${id}`,
			method: 'PUT',
			data
		}),
	// sku列表
	sku_list: (params) =>
		request({
			url: `/shop/api/vocal/show/skulist`,
			method: 'GET',
			params
		}),
	// sku价格
	sku_price: (params) =>
		request({
			url: `/shop/api/vocal/show/skuPrice`,
			method: 'GET',
			params
		}),
	// 预下单
	pre: (params) =>
		request({
			url: `/shop/api/vocal/order/pre`,
			method: 'GET',
			params
		}),
	// 创建订单
	create_order: (data) =>
		request({
			url: `/shop/api/vocal/order/create`,
			method: 'POST',
			data
		}),
	// 订单列表
	order_list: (params) =>
		request({
			url: `/shop/api/vocal/order`,
			method: 'GET',
			params
		}),
	// 订单详情
	order_details: (id) =>
		request({
			url: `/shop/api/vocal/order/${id}`,
			method: 'GET',
			custom: {
				showLoading: false
			}
		}),
	// 我的邀请
	invite: () =>
		request({
			url: `/shop/api/vocal/share/index`,
			method: 'GET',
		}),
	// 核销
	Verification: (id) =>
		request({
			url: `/shop/api/code/writeOffToGoods/code/${id}`,
			method: 'GET'
		}),
	// 核销列表
	check_list: (params) =>
		request({
			url: `/shop/api/vocal/code`,
			method: 'GET',
			params
		}),
	// 分类列表
	category_list: () =>
		request({
			url: `/shop/api/vocal/show/category`,
			method: 'GET',
		}),
	// 客服电话
	service_tel: () =>
		request({
			url: `/shop/api/vocal/order/tel`,
			method: 'GET',
		}),
	// 收藏
	collect: (params) =>
		request({
			url: `/shop/api/vocal/collect/collect`,
			method: 'GET',
			params
		}),
	// 收藏列表
	collect_list: (params) =>
		request({
			url: `/shop/api/vocal/collect/list`,
			method: 'GET',
			params
		}),
	// 票夹列表
	folder_list: (params) =>
		request({
			url: `/shop/api/vocal/ticket/index`,
			method: 'GET',
			params
		}),
	// 票夹副列表
	folder_aid: (id, params) =>
		request({
			url: `/shop/api/vocal/ticket/list/${id}`,
			method: 'GET',
			params
		}),
	// 票夹详情
	folder_info: (id) =>
		request({
			url: `/shop/api/vocal/ticket/detail/${id}`,
			method: 'GET',
		}),
	// 退款
	refund: (data) =>
		request({
			url: `/shop/api/vocal/aftersale`,
			method: 'POST',
			data
		}),
	banner: (params) =>
		request({
			url: '/shop/api/singer/index/banner',
			method: 'GET',
			params
		}),
	category: (params) =>
		request({
			url: '/shop/api/singer/index/category',
			method: 'GET',
			params
		}),
	singerList: (params) =>
		request({
			url: '/shop/api/singer/index/index',
			method: 'GET',
			params
		}),
	lockCity: (params) =>
		request({
			url: '/shop/api/vocal/index/lockCity',
			method: 'GET',
			params
		}),
	addSinger: (data) =>
		request({
			url: '/shop/api/singer/singer/add',
			method: 'POST',
			data
		}),
	editSinger: (data, id) =>
		request({
			url: `/shop/api/singer/singer/edit/${id}`,
			method: 'POST',
			data
		}),
	auditStatus: () =>
		request({
			url: `/shop/api/singer/singer/audit`,
			method: 'GET',
		}),

	createSingerOrder: (data) =>
		request({
			url: `/shop/api/singer/order/create`,
			method: 'POST',
			data
		}),
	orderSingerList: (params) =>
		request({
			url: `/shop/api/singer/order`,
			method: 'GET',
			params
		}),
	statusList: () =>
		request({
			url: `/shop/api/singer/order/statusList`,
			method: 'GET',
		}),
	singerDetail: (id) =>
		request({
			url: `/shop/api/singer/index/details/${id}`,
			method: 'GET',
		}),
	orderSingerDetail: (id) =>
		request({
			url: `/shop/api/singer/order/${id}`,
			method: 'GET',
		}),
	end: (id) =>
		request({
			url: `/shop/api/singer/order/end/${id}`,
			method: 'POST',
		}),
	// 发布招募
	recruit: (data) =>
		request({
			url: '/shop/api/vocal/volunteer',
			method: 'POST',
			data
		}),
	// banner
	recruitBanner: () =>
		request({
			url: '/shop/api/vocal/volunteer/banner',
			method: 'GET',
		}),
	// 招募列表
	recruitlist: (params) =>
		request({
			url: '/shop/api/vocal/volunteer',
			method: 'GET',
			params
		}),
	// 招募列表
	recruitDetails: (id) =>
		request({
			url: `/shop/api/vocal/volunteer/${id}`,
			method: 'GET',
		}),
	// 报名列表
	signList: (id, params) =>
		request({
			url: `/shop/api/vocal/volunteer/signList/${id}`,
			method: 'GET',
			params
		}),
	sign: (id,data) =>
		request({
			url: `/shop/api/vocal/volunteer/singUp/${id}`,
			method: 'POST',
			data
		}),
	cancelSign: (id) =>
		request({
			url: `/shop/api/vocal/volunteer/cancel/${id}`,
			method: 'POST',
		}),
	myPost: (params) =>
		request({
			url: `/shop/api/vocal/volunteer/myCreate`,
			method: 'GET',
			params
		}),
	myJoin: (params) =>
		request({
			url: `/shop/api/vocal/volunteer/myJoin`,
			method: 'GET',
			params
		}),
	editRecruit: (id,data) =>
		request({
			url: `/shop/api/vocal/volunteer/${id}`,
			method: 'POST',
			data
		}),
};